package com.bitcoin.scheduler.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.context.annotation.Lazy;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.util.Date;


@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Table(name = "bcc_price_info_crawl")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class BccPriceInfoCrawl extends Identity {

    String bccId;
    String batchNo;
    Date priceTimestamp;
    String priceTimestampMin;
    String nameEn;
    String nameCn;
    String volumeUsd;
    String volumeCny;
    String volumeBtc;
    String priceUsd;
    String priceCny;
    String priceBtc;
    String change7d;
    String change1d;
    String change1h;
    String availableSupply;
    String high1dUsd;
    String high1dCny;
    String high1dBtc;
    String low1dUsd;
    String low1dBtc;
    String low1dCny;
    String marketCap;
    Date createTime;
    Date updateTime;

}
